import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useCountState = defineStore('countStore',  () => {
  const count = ref(0)
  const changeCount = (n: number) => {
    count.value += n
  }
  return {
    count,
    changeCount
  }
})